﻿using SmartSpace.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SmartSpace.WebApp.Template.Prototype
{
    public partial class NestedPage : System.Web.UI.MasterPage, IMainPanel
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Core.Page curPage = SsSite.Instance.CurrentPage;
            if (curPage != null)
            {
                _ctlSiteMapBar.InnerText = curPage.Caption;
            }
        }

        public INavigationPanel GetNavigatePanel()
        {
            return this._ctlNavigationPanel;
        }

        public IWorkAreaPanel GetWorkAreaPanel()
        {
            return null;
        }

        public IHeaderPanel GetHeaderPanel()
        {
            return _ctlHeaderPanel;
        }

        public IFooterPanel GetFooterPanel()
        {
            return _ctlFooterPanel;
        }

        public Control GetContentView()
        {
            return this;
        }
    }
}